package bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

//import com.bean.IItem;

public class Item implements InitializingBean, DisposableBean {

	private String itemID;
	private String title;

	public Item() {
		System.out.println("Item() is called!");
	}

	public Item(String itemID, String title) {
		this.itemID = itemID;
		this.title = title;
		System.out.println("Item(itemID, title) is called!");
	}
	
	public void init() {
		System.out.println("Item.init() is called ...");
	}

	public void afterPropertiesSet() throws Exception {
		System.out.println("Item.afterPropertiesSet() is called ...");
	}
	
	public void mydestroy() {
		System.out.println("Item.mydestroy() is called ...");
	}

	public void destroy() {
		System.out.println("Item.destroy() is called ...");
	}

	public String getItemID() {
		return itemID;
	}

	public void setItemID(String itemID) {
		this.itemID = itemID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
}
